﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace TestHttpModules
{
    [MetadataType(typeof(User_ProfileMetaData))]
    public partial class User_Profile
    {
    }
    public class User_Profile_Ext : User_Profile
    {

    }
    public class User_ProfileMetaData
    {
        [ScaffoldColumn(false)]//是否在页面上显示，一般主键设为false,默认为true
        public int ID { get; set; }
        [Required(ErrorMessage = "请输入名称")]
        [DisplayName("名称")]
        [RegularExpression(@"[\w]{2,4}$", ErrorMessage = "必须是由2到4个字组成.")]
        public string RealName { get; set; }
    }
}